package mysql

import "gorm.io/gorm"

type Book struct {
	gorm.Model
	Title  string `gorm:"type:varchar(20);comment:'标题'"`
	Text   string `gorm:"type:varchar(500);comment:'内容'"`
	UserId int64  `gorm:"type:int(11);not null;comment:'用户id'"`
	Types  string `gorm:"type:varchar(20);comment:'分类'"`
	Likes  int    `gorm:"type:int(11);not null;comment:'点赞量"`
	Author string `gorm:"type:varchar(20);comment:'作者"`
}
